<html>
  <head>
    <title>Manage Members</title>
   	<script src="./lib/jquery.js" ></script>
	<meta name="viewport" content="width=device-width, initial-scale=1"> 
	<link rel="stylesheet" href="./lib/jquery.mobile-1.1.1.min.css" />
	<script src="./lib/jquery-1.7.1.min.js"></script>
	<script language="JavaScript" SRC="config.js"></script>
	<script src="./lib/jquery.mobile-1.1.1.min.js"></script>
    <script type="text/javascript" charset="utf-8">
    var query = window.location.search;
    // Skip the leading ?, which should always be there, 
    // but be careful anyway
    if (query.substring(0, 1) == '?') {
      query = query.substring(1);
    }
    var data = query.split(','); 
    for (i = 0; (i < data.length); i++) {
      data[i] = unescape(data[i]);
      data[i]=data[i].replace('userid=','');
    }
    function loadData(){
  alert("loadData are called");
 // $.getJSON("http://10.0.2.2/socialengine/mobileservice/hello?callback=?",
   $.getJSON('http://'+serverip+'/socialengine/mobileservice/edituser/showalllevel?callback=?',
   function(serverdata){
    alert(serverdata.Data[0].username); // hellothisisbob@gmail.com
	for(key in serverdata.Data) {
  	  $('#mylist').append('<li>'+'<a href="confirmedituserlevel.html?userid='+data[0]+'?level_id='+serverdata.Data[key].level_id+'?title='+serverdata.Data[key].title+'" rel="external">'+'<h3>'+serverdata.Data[key].title +'</h3>'+'<p>'+serverdata.Data[key].description+'<p>'+'</a>' +'</li>').listview('refresh');
	
	}
	
  });
 }
    </script>
  </head>
<body onload="loadData()">
<div data-role="page">
	<div data-role="header">
	<a href="index.html" data-role="button" data-icon="home" data-iconpos="notext" rel="external">Home</a>
		<h1>Manage Members</h1>
	</div><!-- /header -->
	<div   data-role="content">
	<ul data-role="listview"  id="mylist" data-filter="true">
	</ul>
  </div><!-- /content -->

</div><!-- /page -->
 </body>
</html>